package com.tengfei.main.course.domain.bo;


import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 章节视频业务对象 cs_chapter_video
 *
 * @author tengfei
 * @date 2022-07-27
 */

@Data
@ApiModel("章节视频业务对象")
public class ChapterVideoBo {

    /**
     * 章节视频id
     */
    @ApiModelProperty(value = "章节视频id")
    private Long id;

    /**
     * 章节id
     */
    @ApiModelProperty(value = "章节id", required = true)
    @NotNull(message = "章节id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long chapterId;

    /**
     * 视频id
     */
    @ApiModelProperty(value = "视频id", required = true)
    @NotNull(message = "视频id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long videoId;

    /**
     * 是否可以快进
     */
    @ApiModelProperty(value = "是否可以快进", required = true)
    @NotNull(message = "是否可以快进？", groups = {AddGroup.class, EditGroup.class})
    private Integer isForward;


    /**
     * 视频封面
     */
    @ApiModelProperty(value = "视频封面")
    private String videoCover;

    /**
     * 视频名称
     */
    @ApiModelProperty(value = "视频名称")
    private String videoName;


    /**
     * 问题类型为选择题或判断题（可以快进，此属性不生效）
     * [
     * {
     * "point":10,	"视频第十秒"
     * "qus_id":10	"问题id"
     * },
     * {
     * "point":60,	"视频第十秒"
     * "qus_id":30	"问题id"
     * }
     * ]
     */
    @ApiModelProperty(value = "问题类型为选择题或判断题 [ { 'point':10,	'视频第十秒' 'qus_id':10	'问题id' }")
    private String problems;


}

